package com.king.demo01;

public class Proxy implements Rent{
    private Host host;

    public Proxy(){}

    public Proxy(Host host){
        this.host = host;
    }

    public void rentHouse() {
        seeHouse();
        host.rentHouse();
        fee();
    }

    //看房
    public void seeHouse(){
        System.out.println("中介带你看房");
    }

    //中介费
    public void fee(){
        System.out.println("中介收取中介非");
    }
}
